import http from "@/http/index";

export default {

    insert: {
        name: "商品新增",
        url: "/api/product",
        call: async function (params: any = {}){
            return await http.post(this.url, params)
        }
    },
    update: {
        name: "商品修改",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.put(this.url, params)
        }
    },
    select: {
        name: "商品查找",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.get(this.url, params)
        }
    },
    patch: {
        name: "更新商品状态",
        url: "/api/product",
        call: async function (params: any = {}) {
            return await http.patch(this.url, params)
        }
    }


}


//export { a,b}


